package com.joysuch.wwyt.api.mh.service;

import com.joysuch.wwyt.api.mh.bean.MhPlatformBean;
import com.joysuch.wwyt.api.mh.bean.MhPlatformFieldBean;
import com.joysuch.wwyt.api.mh.bean.MhPlatformPointBean;
import com.joysuch.wwyt.api.mh.entity.MhPlatformField;
import com.joysuch.wwyt.core.bean.SimpleSelectListBean;
import com.joysuch.wwyt.core.common.ajax.ResultBean;
import com.joysuch.wwyt.api.mh.entity.MhPlatform;
import com.joysuch.wwyt.api.mh.entity.MhPlatformPoint;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface MhPlatformDataDockingService {
    MhPlatform addPlatform(MhPlatformBean bean);

    MhPlatform updatePlatform(MhPlatformBean bean);

    List<MhPlatformBean> getPlatformList();

    void deletePlatformById(Long id);

    void addPoint(List<MhPlatformPointBean> list);

    MhPlatformPoint editPoint(MhPlatformPointBean bean);

    void deletePointById(Long id);

    ResultBean pagePoint(Pageable page, Long platformId, String codeOrName);

    MhPlatformPointBean getPointById(Long id);

    MhPlatformBean getPlatformById(Long id);

    ResultBean getData(Long id);

    MhPlatformField saveField(MhPlatformFieldBean bean);

    void deleteFieldById(Long id);

    List<SimpleSelectListBean> getFieldLIstById(Long id);
}
